package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.FullReductionCommodityMapper;
import com.richest.api.service.IFullReductionCommodityService;
import com.richest.bean.FullReductionCommodityBean;

/**
 * 企业满减和商品关联信息管理服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class FullReductionCommodityServiceImpl implements IFullReductionCommodityService {

	@Autowired
	private FullReductionCommodityMapper mapper;

	@Override
	public Integer fullReductionCommodityAdd(FullReductionCommodityBean bean) {
		return mapper.fullReductionCommodityAdd(bean);
	}

	@Override
	public Integer fullReductionCommodityUpdate(FullReductionCommodityBean bean) {
		return mapper.fullReductionCommodityUpdate(bean);
	}

	@Override
	public Integer fullReductionCommodityDelete(Long id) {
		return mapper.fullReductionCommodityDelete(id);
	}

	@Override
	public FullReductionCommodityBean fullReductionCommoditySelectOne(Long id) {
		return mapper.fullReductionCommoditySelectOne(id);
	}

	@Override
	public List<Map<String, Object>> fullReductionCommoditySelectMap(Map<String, Object> params) {
		return mapper.fullReductionCommoditySelectMap(params);
	}
}
